package Items;

import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URLClassLoader;

import javax.imageio.ImageIO;

import Constructions.Morgue;
import Main.SpaceGame;

public class Corpse extends Item
{
	String name, rank;
	
	public Corpse(int x, int y,SpaceGame main, String name, String rank) 
	{
		super(x, y, main);
		this.x = x;
		this.y = y;
		this.name = name;
		this.rank = rank;
		try {
			sprite = ImageIO.read(URLClassLoader.getSystemResource("Resources/"+"Corpse.png"));
		}
		catch (IOException e) {
			e.printStackTrace();
		}
		associatedStorage = new Morgue(x, y, main);
	}
	
	public String getText()
	{
		return ("Corpse of " + rank + " " + name);
	}
}
